<table class="table-grid">
    <thead>
    <tr>
        <th class="col-idx"><a href="#" class="btn-arrowstop lnk-multiple" onclick="">&nbsp;</a></th>
        <if condition="$isSuperAdmin">
            <th>租户ID</th>
        </if>
        <th>商品名称</th>
        <th>价格</th>
        <th>数量</th>
        <th>小计</th>
        <th>库存</th>
        <th>操作类型</th>
        <th>采购员</th>
        <th>供应商</th>
        <th>创建时间</th>
        <th>操作</th>
    </td></tr>
    </thead>
    <tbody>
    <foreach name="list" item="vo">
        <tr data-key="{$vo.id}">
            <td>{$key}</td>
            <if condition="$isSuperAdmin">
                <td>{$vo.siteID}</td>
            </if>
            <td>{$vo.productName}</td>
            <td>{$vo.operateType|sofn_get_state_text='product-operate-type',###}</td>
            <td>{$vo.catalogName}</td>
            <td>{$vo.price}</td>
            <td>{$vo.number}</td>
            <td>{$vo.subtotal}</td>
            <td>{$vo.stock}</td>
            <td>{$vo.buyer}</td>
            <td>{$vo.providerID}</td>
            <td>{$vo.createdTime}</td>
            <td class="no-padding"><if condition="$upr['采购入库']">
                <a href="{:U('Product/product_edit','id='.$vo['id'])}" class="btn-edit lnk-edit">修正数据</a>
                <a href="{:U('Product/product_delete','id='.$vo['id'])}" class="btn-minus lnk-confirm">删除</a>
                </if>
            </td>
        </td></tr>
    </foreach>
    </tbody>
</table>
{$pager}